import { http } from "@/utils/http";

// 1、查询压力表明细
export const getPressureListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/bulkGas/queryManometer", {
    data
  });
};

// 2、查询压力表曲线
export const getPressureLineAPI = data => {
  return http.request("post", "/operation/api/v1/gas/bulkGas/queryManometerCurve", {
    data
  });
};

// 3、压力表编辑spec
export const editPressureListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/bulkGas/updateSpc", {
    data
  });
};

// 4、oos回填原因
export const setOOSReasonAPI = data => {
  return http.request("post", "/operation/api/v1/gas/bulkGas/submitReason", {
    data
  });
};

// 5、关联查询
export const getAssociationAPI = data => {
  return http.request("post", "/operation/api/v1/gas/bulkGas/queryAssociationQuery", {
    data
  });
};

// 6、查询流量计明细
export const getFlowMeterListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/bulkGas/queryFlowmeter", {
    data
  });
};

// 7、查询流量计曲线
export const getFlowMeterLineAPI = data => {
  return http.request("post", "/operation/api/v1/gas/bulkGas/queryFlowmeterCurve", {
    data
  });
};
